package com.usian.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.usian.entity.Com;
import com.usian.entity.ComDTO;
import com.usian.entity.Course;
import com.usian.mapper.ComMapper;
import com.usian.service.ComService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 陈宇轩
 * @version 1.0
 * @date 2023/8/23 21:13
 */

@Service
public class ComServiceImpl extends ServiceImpl<ComMapper, Com> implements ComService {
    @Autowired
    private ComMapper comMapper;
    @Override
    public Integer findAllCom() {
        return comMapper.findAllCom();
    }

    @Override
    public List<Com> findAll(ComDTO comDTO) {
            List<Com> list2 = comMapper.findAll(comDTO);
            return list2;
    }
}
